<template>
  <div class="department-container">
    <!-- <upload-img /> -->
    <div class="app-container">
      <el-card>
        <!-- 具体页面结构 -->
        工资管理
        <son :id="id" />
      </el-card>
    </div>

    <el-divider>华丽的分割线</el-divider>
    <h1>addRoutes 动态路由学习</h1>
    <p>需求： 希望用户点击按钮后才可以访问  /abc 页面 </p>
  </div>
</template>
<script>
import son from './son.vue'
export default {
  components: {
    son
  },
  data() {
    return {
      id: '我是洗脚彭'
    }
  },
  methods: {
    hClick() {
      this.id = 'woxiangqvxijiao!'
      this.$nextTick(() => {
        console.log(this.id)
      })
    }
  }

}
</script>
